// 获取导航栏列表
export function getHomeRouteService() {
  let router = {
    index: 1,
    name: '首页',
    sub: [
      // {
      //   name: '首页',
      //   hasSub: false,
      //   path: '/main/home/index',
      // },
      // {
      //   name: '我参与的工作',
      //   hasSub: false,
      //   path: '/main/home/the-work-i-am-involved-in',
      // },
      {
        name: '待办事项',
        hasSub: false,
        path: '/main/home/backlog',
      },
      {
        name: '提醒中心',
        hasSub: false,
        path: '/main/home/reminding-center',
      },
      {
        name: '我提交的申请',
        hasSub: false,
        path: '/main/home/my-application-for-submission',
      },
      {
        name: '被退回的申请',
        hasSub: false,
        path: '/main/home/a-retreated-application',
      },
      {
        name: '已完成的申请',
        hasSub: false,
        path: '/main/home/completed-application'
      }
    ]
  }
  return router;
}
export function getExperimentalManagementRouteService() {
  let router = {
    index: 2,
    name: '实验管理',
    sub: [{
      name: '委托申请',
      hasSub: true,
      sub:[{
        name:'委托型',
        hasSub:false,
      path: '/main/experimental-management/application-for-entrustment',

      },
      {
        name:'非WIP生产型',
        hasSub:false,
      path: '/main/experimental-management/application-for-entrustment-mes',

      }]
    }, {
      name: '委托审批',
      hasSub: false,
      path: '/main/experimental-management/entrustment-approval',
    },  {
      name: '接取任务',
      hasSub: false,
      path: '/main/experimental-management/task-allocation/task-allocation',
    }, {
      name: '实验结论生成',
      hasSub: true,
      sub: [{
        name: '检测数据上传',
        hasSub: false,
        path: '/main/experimental-management/experimental-report-generation/data-uploading',
      }, {
        name: '任务撤回',
        hasSub: false,
        path: '/main/experimental-management/experimental-report-generation/task-withdrawal',
      }, {
        name: '实验报告审核',
        hasSub: false,
        path: '/main/experimental-management/experimental-report-generation/inspection-data-audit',
      }]
    }, {
      name: '实验报告查询',
      hasSub: false,
      path: '/main/experimental-management/experimental-report-query',
    }, {
      name: '任务管理',
      hasSub: true,
      sub: [ {
        name: '样品未送达查询',
        hasSub: false,
        path: '/main/experimental-management/sample-reception',
      },{
        name: '任务处理',
        hasSub: false,
        path: '/main/experimental-management/task-management/task-processing',
      },{
        name: '任务查询',
        hasSub: false,
        path: '/main/experimental-management/task-management/task-query',
      }]
    }]
  }
  return router;
}
export function getResourceManagementRouteService() {
  var router = {
    index: 3,
    name: '资源管理',
    sub: [{
      name: '实验技术要求管理',
      hasSub: false,
      path: '/main/resource-management/experimental-technology-requirements-management',
    }, {
      name: '设备管理',
      hasSub: false,
      path: '/main/resource-management/device-management',
    }, {
      name: '检测项目管理',
      hasSub: false,
      path: '/main/resource-management/inspection-project-management',
    }, {
      name: '基础信息维护',
      hasSub: false,
      path: '/main/resource-management/maintenance-of-basic-information',
    }]
  }
  return router;
}
export function getSystemManagementRouteService() {
  var router = {
    index: 4,
    name: '系统管理',
    sub: [{
      name: '电子签章',
      hasSub: true,
      sub: [{
        name: '电子签名',
        hasSub: false,
        path: '/main/system-management/electronic-signature/electronic-signature'
      }, {
        name: '电子公章',
        hasSub: false,
        path: '/main/system-management/electronic-signature/electronic-seal'
      }]
    }, {
      name: '系统管理',
      hasSub: true,
      sub: [{
        name: '用户管理',
        hasSub: false,
        path: '/main/system-management/user-manage/userManage'
      }, {
        name: '角色管理',
        hasSub: false,
        path: '/main/system-management/role-manage/roleManage'
      },{
        name: '菜单权限管理',
        hasSub: false,
        path: '/main/system-management/menu-manage/menuManage'
      }, {
        name: '日志管理',
        hasSub: false,
        path: '/main/system-management/log-manage/logManage'
      }]
    },{
      name: '任务单删除',
      hasSub: false,
      path: '/main/system-management/qr-code-del.vue'
    },]
  }
  return router;
}
export function getReportCenterRouteService() {
  var router = {
    index: 5,
    name: '报表中心',
    sub: [{
      name: '理化检测项目统计',
      hasSub: false,
      path: '/main/report-center/physical-and-chemical-testing-project-statistics',
    }, {
      name: '人员系数统计',
      hasSub: false,
      path: '/main/report-center/statistics-of-coefficient-of-personal',
    }, {
      name: '人员任务完成及时率',
      hasSub: false,
      path: '/main/report-center/personnel-task-completion-rate',
    }, {
      name: '合格率',
      hasSub: false,
      path: '/main/report-center/qualification-rate',
    }, {
      name: '设备利用率',
      hasSub: false,
      path: '/main/report-center/equipment-utilization-ratio',
    }, {
      name: '原材料炉号生产零件信息表',
      hasSub: false,
      path: '/main/report-center/information-report-on-production-parts-of-heat-treatment-furnace-number',
    }, {
      name: '零件检测数据汇总表',
      hasSub: false,
      path: '/main/report-center/summary-table-of-parts-detection-data',
    }]
  }
  return router;
}

export function getNavbarListService() {
  var list = [
    getHomeRouteService(),
    getExperimentalManagementRouteService(),
    getResourceManagementRouteService(),
    getSystemManagementRouteService(),
    getReportCenterRouteService()
  ];
  return list;
}
